﻿using System;
using System.Net.Sockets;
using com.tdb.foundation;

namespace Script.Net
{
    public class TcpClientSocketData
    {
        public Socket ClientSocket;

        /// <summary>
        ///     是否正在接收数据
        /// </summary>
        public bool IsReceive;

        /// <summary>
        ///     是否正在发送数据
        /// </summary>
        public bool IsSending;

        public int SocketId;

        public TcpClientSocketData(Socket workSocket)
        {
            ClientSocket = workSocket;
            SocketId = TimeUtil.GetUTCTime(DateTime.Now).Seconds;
            IsReceive = false;
            IsSending = false;
        }
    }
}